package com.thoughtworks.studio.tools.cardkit;

import java.util.Properties;
import java.util.Set;

public class Card {
	private Properties prop = new Properties();

	private String number;
	private String name;
	public Set getPropertyNames(){
		return  prop.keySet();
	}
	
	public Card(){
		this.name = "new Card";
		this.number = new String("0");
	}
	
	public Object getPropertyValue(String propertyName){
		return prop.containsKey(propertyName)?prop.get(propertyName):null;
	}
	public void setPorperty(String name,Object value){
		prop.put(name, value);
	}
	public void setNumber(String cardNumber) {
		this.number = cardNumber;
	}
	public void setName(String cardName) {
		this.name = cardName;
	}
	public String getNumber() {
		return number;
	}
	public String getName() {
		return name;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((number == null) ? 0 : number.hashCode());
		return result;
	}
}
